package com.tarena.lbs.passport.config;

import com.tarena.lbs.common.passport.encoder.JwtEncoder;
import com.tarena.lbs.common.passport.principle.UserPrinciple;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class JwtEncoderConfiguration {
    @Bean
    public JwtEncoder<UserPrinciple> jwtEncoder(){
        JwtEncoder<UserPrinciple> jwtEncoder=new JwtEncoder<UserPrinciple>();
        jwtEncoder.setSecret("tarena2024Up;");
        return jwtEncoder;
    }
}
